package com.bzy.bladeauthapi.fegin;


import com.baomidou.mybatisplus.extension.api.R;
import com.bzy.bladeauthapi.entry.User;
import com.bzy.comment.servicename.ServiceName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletResponse;

@FeignClient(value = ServiceName.AUTHER)
public interface LoginFeginClient {

    String login = "login";

    String doLogin = login+"/dologin";
    String isLogin = login+"/islogin";


    /**
     * 登陆;
     * @param user
     * @return
     */
    @PostMapping(doLogin)
    R doLogin(@RequestBody  User user);




    @GetMapping(isLogin)
    R isLogin();


}
